package cn.lan.code.utils;

/**
 * 定义常量类
 * @author lanping
 * @version 1.0
 * @date 2021-04-23
 */
public class ConstantUtil {

    /**
     * 数据有效状态 Y
     */
    public final static String IS_VALID_Y = "Y";

    /**
     * 数据有效状态 N
     */
    public final static String IS_VALID_N = "N";

    /**
     * 系统标识 sysCode
     */
    public final static String DEFAULT_SYS_CODE= "springboot-generator-web";

    /**
     * 操作成功
     */
    public final static int CODE_200 = 200;

    /**
     * 数据校验错误！
     */
    public final static int CODE_400 = 400;

    /**
     *
     */
    public final static int CODE_401 = 401;

    /**
     * Authorization过期 没有操作权限
     */
    public final static int CODE_403 = 403;

    /**
     * 找不到相关页面资源！
     */
    public final static int CODE_404 = 404;

    /**
     * 不能通过地址栏直接访问！
     */
    public final static int CODE_405 = 405;


    /**
     * 系统异常
     */
    public final static int CODE_500 = 500;

    public final static String MSG_200 = "操作成功";
    public final static String MSG_400 = "没有操作权限";
    public final static String MSG_401 = "没有操作权限";
    public final static String MSG_403 = "没有操作权限";
    public final static String MSG_404 = "参数不能为空";
    public final static String MSG_405 = "登录信息已过期";
    public final static String MSG_500 = "系统异常";
    public final static String MSG_LOGIN_SUCCESS = "登录成功";
    public final static String MSG_REGISTER_SUCCESS = "注册成功";
    public final static String MSG_EXIT_SUCCESS = "退出成功";
    public final static String MSG_SUBMIT_SUCCESS = "提交成功";
    public final static String MSG_SAVE_SUCCESS = "保存成功";
    public final static String MSG_SET_SUCCESS="设置成功";
    public final static String MSG_CREATE_SUCCESS="创建成功";
    public final static String MSG_ADD_SUCCESS = "新增成功";
    public final static String MSG_EDIT_SUCCESS = "修改成功";
    public final static String MSG_DEL_SUCCESS = "删除成功";
    public final static String MSG_FIND_SUCCESS = "查询成功";
    public final static String MSG_ADD_ERROR = "新增失败";
    public final static String MSG_EDIT_ERROR = "修改失败";
    public final static String MSG_DEL_ERROR = "删除失败";
    public final static String MSG_SELECT_ERROR = "查询失败";
    public final static String MSG_PAGE_DATA_ERROR = "分页参数错误";
    public final static String MSG_OP_SUCCESS = "操作成功";
    public final static String MSG_OP_ERROR = "操作失败";

}
